package cn.tedu._03vehicle.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    //所有枚举类的实力都在最上面
    OPERATION_SUCCESS(2000,"操作成功"),
    OPERATION_FAILED(3000,"操作失败"),
    USERNAME_EXISTS(1000,"用户名已存在"),
    VEHICLE_EXISTS(1001,"车辆已存在"),
    USERNAME_PASSWORD_ERROR(1001,"用户名不存在"),
    NOT_LOGIN(1002,"用户未登录"),
    THROWABLE_ERROR(6666,"未知异常"),
    VALIDATED_ERROR(8888,"参数效验失败" );
    private Integer state; // 状态码
    private String message;  // 状态码对应的消息


}
